package com.bruce.asurada.sso.client.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 用户登录请求DTO
 * 
 * @author Bruce
 */
@Data
public class UserLoginDto {

    /**
     * 账号（用户名/手机号/邮箱）
     */
    @NotBlank(message = "账号不能为空")
    private String account;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    public UserLoginDto() {}

    public UserLoginDto(String account, String password) {
        this.account = account;
        this.password = password;
    }
}